package com.qf.mapper;

import com.qf.pojo.Jiudian;
import com.qf.pojo.JiudianExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface JiudianMapper {

    //模糊查询酒店
    List<Jiudian> selectshouyemohu(String jname);
    List<Jiudian> findAll();
    //根据酒店名字模糊查酒店以及酒店要有房间数>0
    List<Jiudian> selectJiudianByJname(String jname);
    int countByExample(JiudianExample example);

    int deleteByExample(JiudianExample example);

    int deleteByPrimaryKey(Integer jid);

    int insert(Jiudian record);

    int insertSelective(Jiudian record);

    List<Jiudian> selectByExample(JiudianExample example);

    Jiudian selectByPrimaryKey(Integer jid);

    int updateByExampleSelective(@Param("record") Jiudian record, @Param("example") JiudianExample example);

    int updateByExample(@Param("record") Jiudian record, @Param("example") JiudianExample example);

    int updateByPrimaryKeySelective(Jiudian record);

    int updateByPrimaryKey(Jiudian record);
}